Skip to content

feat(spanner): return commit response and stats#5522

Merged
olavloite merged 4 commits into
googleapis:mainfrom
olavloite:spanner-commit-response-and-stats
May 11, 2026
Merged

feat(spanner): return commit response and stats#5522
olavloite merged 4 commits into
googleapis:mainfrom
olavloite:spanner-commit-response-and-stats

Conversation

@olavloite
Copy link
Copy Markdown
Contributor

  • The TransactionRunner did not return the CommitResponse. This made it impossible for an application to inspect the commit timestamp.
  • There was no option for returning commit stats. These are only included in the CommitResponse when explicitly requested.

Both of the above is added in this change.

The change in return type for TransactionRunner is a breaking change, but that is OK, as we have not yet released this client.

@olavloite olavloite requested review from a team as code owners April 24, 2026 15:26
@product-auto-label product-auto-label Bot added the api: spanner Issues related to the Spanner API. label Apr 24, 2026
- The TransactionRunner did not return the CommitResponse. This made it impossible
  for an application to inspect the commit timestamp.
- There was no option for returning commit stats. These are only included in the
  CommitResponse when explicitly requested.

Both of the above is added in this change.

The change in return type for TransactionRunner is a breaking change, but that is OK,
as we have not yet released this client.
@olavloite olavloite force-pushed the spanner-commit-response-and-stats branch from 69fce17 to 4813acd Compare April 24, 2026 15:41
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.94%. Comparing base (cf659d9) to head (e3b1b76).

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #5522    +/-   ##
========================================
  Coverage   97.93%   97.94%            
========================================
  Files         221      221            
  Lines       51762    51927   +165     
========================================
+ Hits        50693    50859   +166     
+ Misses       1069     1068     -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@olavloite olavloite enabled auto-merge (squash) May 11, 2026 06:55
@olavloite olavloite merged commit 369cdc7 into googleapis:main May 11, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the Spanner API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants